@echo off
set SC_HOME=%~dp0
set FLASH_TRUST="%SYSTEMDRIVE%%HOMEPATH%\Application Data\Macromedia\Flash Player\#Security\FlashPlayerTrust"
set INSTALL_LOG=%SC_HOME%\install.log

REM Create the FlashTrust directory if it doesn't exist.
IF NOT EXIST %FLASH_TRUST% (mkdir %FLASH_TRUST%) & (echo Created %FLASH_TRUST% directory.) & echo Created %FLASH_TRUST% directory. >> %INSTALL_LOG%

REM Add this location to Flash Player trusted locations.
echo %SC_HOME% >> %FLASH_TRUST%\wsc.cfg
echo Added the %SC_HOME% to Flash Player Trust locations.
echo Added the %SC_HOME% to Flash Player Trust locations. >> %INSTALL_LOG%

echo Installation completed successfully. >> %INSTALL_LOG%
REM Show message that Install is complete, and wait for user to exit.
echo Installed successfully. Press any key to exit.
pause > nul